package fragment;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class MySqlDate extends SQLiteOpenHelper {

    //数据库名字
    public MySqlDate(@Nullable Context context) {
        super(context, "hhh", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table weixinzhichu(id int ,time varchar(20), didian varchar(200), money varchar(20) , beizhu varchar(200))");
        db.execSQL("create table weixinshouru(id int ,time varchar(20), didian varchar(200), money varchar(20), beizhu varchar(200))");
        db.execSQL("create table zhifubaozhichu(id int ,time varchar(20), didian varchar(200), money varchar(20), beizhu varchar(200))");
        db.execSQL("create table zhifubaoshouru(id int ,time varchar(20), didian varchar(200), money varchar(20), beizhu varchar(200))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
